package cn.java8practise.lambda;

import lombok.Data;

/**
 * Created by 杨志远 on 2017/4/24
 * email faryangsh@163.com.
 */
@Data
public class Apple extends Fruit {
    private Integer weigth;

    private String color;

    public Apple(Integer weight){
        this.weigth=weight;
    }

    public Apple(String color,Integer weight){
        this.weigth=weight;
        this.color=color;
    }
}
